﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace eLoan.Models
{
    public class BorrowerListModel
    {
        public List<BorrowerItem> BorrowerList { get; set; }

        public string SelectedBranchCode { get; set; }

        [Display(Name = "Search text")]
        public string SearchText { get; set; }

        [Display(Name="Select a branch")]
        public IEnumerable<SelectListItem> Branches { get; set; }

    }

    public class BorrowerItem
    {
        public int ID { get; set; }

        [Display(Name = "Borrower")]
        public string BorrowerName { get; set; }

        public int AgentID { get; set; }

        [Display(Name = "Agent")]
        public string AgentName { get; set; }

        [Display(Name = "Address")]
        public string Address { get; set; }

        [Display(Name = "Contact Numbers")]
        public string ContactNumbers { get; set; }

        [Display(Name = "Email Addresses")]
        public string EmailAddresses { get;set; }

        public decimal CreditLimit { get; set; }

        [Display(Name = "Is Active")]
        public bool IsActive { get; set; }
    }

    public class ProspectListModel
    {
        public List<ProspectItem> PropsectList { get; set; }

        [Display(Name = "Branch Code")]
        public string SelectedBranchCode { get; set; }

        [Display(Name = "Select a branch")]
        public IEnumerable<SelectListItem> Branches { get; set; }

        [Display(Name = "Agent")]
        public int SelectedAgentID { get; set; }

        [Display(Name = "Select a branch")]
        public IEnumerable<SelectListItem> Agents { get; set; }

        [Display(Name = "Search text")]
        public string SearchText { get; set; }
    }

    public class ProspectItem
    {
        public int ID { get; set; }

        [Display(Name = "Prospect")]
        public string ProspectName { get; set; }

        [Display(Name = "Agent")]
        public string AgentName { get; set; }

        [Display(Name = "Loan Offer")]
        public decimal LoanOffer { get; set; }

        [Display(Name = "Address")]
        public string Address { get; set; }

        [Display(Name = "Contact Numbers")]
        public string ContactNumbers { get; set; }

        [Display(Name = "Email Addresses")]
        public string EmailAddresses { get; set; }

        [Display(Name = "Is Active")]
        public bool IsActive { get; set; }

        public DateTime? DateAdded { get; set; }
    }

}